Optimal. Leaf size=56 \[ -\frac{25 \tan (c+d x)}{48 d (5 \sec (c+d x)+3)}+\frac{35 \tan ^{-1}\left (\frac{\sin (c+d x)}{\cos (c+d x)+3}\right )}{288 d}+\frac{29 x}{576} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0796837, antiderivative size = 56, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {3785, 3919, 3831, 2657} \[ -\frac{25 \tan (c+d x)}{48 d (5 \sec (c+d x)+3)}+\frac{35 \tan ^{-1}\left (\frac{\sin (c+d x)}{\cos (c+d x)+3}\right )}{288 d}+\frac{29 x}{576} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3785
Rule 3919
Rule 3831
Rule 2657
Rubi steps
\begin{align*} \int \frac{1}{(3+5 \sec (c+d x))^2} \, dx &=-\frac{25 \tan (c+d x)}{48 d (3+5 \sec (c+d x))}+\frac{1}{48} \int \frac{16+15 \sec (c+d x)}{3+5 \sec (c+d x)} \, dx\\ &=\frac{x}{9}-\frac{25 \tan (c+d x)}{48 d (3+5 \sec (c+d x))}-\frac{35}{144} \int \frac{\sec (c+d x)}{3+5 \sec (c+d x)} \, dx\\ &=\frac{x}{9}-\frac{25 \tan (c+d x)}{48 d (3+5 \sec (c+d x))}-\frac{7}{144} \int \frac{1}{1+\frac{3}{5} \cos (c+d x)} \, dx\\ &=\frac{29 x}{576}+\frac{35 \tan ^{-1}\left (\frac{\sin (c+d x)}{3+\cos (c+d x)}\right )}{288 d}-\frac{25 \tan (c+d x)}{48 d (3+5 \sec (c+d x))}\\ \end{align*}
Mathematica [A] time = 0.171145, size = 73, normalized size = 1.3 \[ \frac{160 (c+d x)-150 \sin (c+d x)+96 (c+d x) \cos (c+d x)+35 (3 \cos (c+d x)+5) \tan ^{-1}\left (2 \cot \left (\frac{1}{2} (c+d x)\right )\right )}{288 d (3 \cos (c+d x)+5)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.044, size = 63, normalized size = 1.1 \begin{align*}{\frac{2}{9\,d}\arctan \left ( \tan \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) }-{\frac{25}{48\,d}\tan \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \left ( \left ( \tan \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{2}+4 \right ) ^{-1}}-{\frac{35}{288\,d}\arctan \left ({\frac{1}{2}\tan \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) } \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 2.24934, size = 119, normalized size = 2.12 \begin{align*} -\frac{\frac{150 \, \sin \left (d x + c\right )}{{\left (\frac{\sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + 4\right )}{\left (\cos \left (d x + c\right ) + 1\right )}} - 64 \, \arctan \left (\frac{\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right ) + 35 \, \arctan \left (\frac{\sin \left (d x + c\right )}{2 \,{\left (\cos \left (d x + c\right ) + 1\right )}}\right )}{288 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.63778, size = 211, normalized size = 3.77 \begin{align*} \frac{192 \, d x \cos \left (d x + c\right ) + 320 \, d x + 35 \,{\left (3 \, \cos \left (d x + c\right ) + 5\right )} \arctan \left (\frac{5 \, \cos \left (d x + c\right ) + 3}{4 \, \sin \left (d x + c\right )}\right ) - 300 \, \sin \left (d x + c\right )}{576 \,{\left (3 \, d \cos \left (d x + c\right ) + 5 \, d\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\left (5 \sec{\left (c + d x \right )} + 3\right )^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.12016, size = 80, normalized size = 1.43 \begin{align*} \frac{29 \, d x + 29 \, c - \frac{300 \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )}{\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + 4} + 70 \, \arctan \left (\frac{\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 3}\right )}{576 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]